package common

func Colorize(text string, status string) string {

	out := ""
	switch status {
	case "INFO":
		out = "\033[32;1m"    // Green
	case "ERROR":
		out = "\033[31;1m"    // Red
	case "WARN":
		out = "\033[33;1m"    // Yellow
	case "DEBUG":
		out = "\033[34;1m"    // Blue
	default:
		out = "\033[0m"    // Default
	}
	return out + text + "\033[0m"
}